package com.dk.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.dk.annotation.EnumValue;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 动作实体类
 */
@Data
public class ActionEntity {
    @ExcelProperty("ActionNum(动作编号)")
    @NotNull(message = "ActionNum(动作编号)不能为空")
    @Size(max = 15,message = "ActionNum(动作编号)不得超过15位")
    private String actionNum;

    @ExcelProperty("ActionName(动作名称)")
    @NotNull(message = "ActionName(动作名称)不能为空")
    @Size(max = 50,message = "ActionName(动作名称)不得超过50位")
    private String actionName;

    @ExcelProperty("ActionType(动作类型)")
    @NotNull(message = "ActionType(动作类型)")
    @EnumValue(strValues = {"Case","SQL_SELECT","SQL_INSERT","SQL_UPDATE","SQL_DELETE","WAIT"},message = "ActionType(动作类型)不正确(枚举值:Case,SQL_SELECT,SQL_INSERT,SQL_UPDATE,SQL_DELETE,WAIT)")
    private String actionType;

    @ExcelProperty("ActionBody(动作主体)")
    @NotNull(message = "ActionBody(动作主体)不能为空")
    @Size(max = 1000,message = "ActionBody(动作主体)不得超过1000位")
    private String actionBody;

    @ExcelProperty("ExtractParameter (提取参数)")
    @Size(max = 1000,message = "ExtractParameter (提取参数)不得超过1000位")
    private String extractParameter;
}
